<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org" >
<head>
<meta charset="UTF-8"/>
<title>Title</title>
</head>
<body>
thymeleaf
	<p th:text="'hello, ' + ${msg} + '!'" />
	<table border="1" align="center" width="50%">
		<tr>
			<td>id</td>
			<td>name</td>
			<td>age</td>
		</tr>
		<tr th:each="user : ${list}">
			<td th:text="${user.userId}">Onions</td>
			<td th:text="${user.userName}">2.41</td>
			<td th:text="${user.userAge}">yes</td>
		</tr>
	</table>
	<div>
		<input name="userName" type="text" th:value="${msg}"/>
		空返回true<span th:text="${#strings.isEmpty(msg)}"></span>
		<p>
			是否存在指定的字符串<span th:text="${#strings.contains(msg, '9')}"></span>
			<span th:text="${#strings.contains(msg, 'T')}"></span>
		</p>
		<hr/>
		是否是以指定字符串开头的<span th:text="${#strings.startsWith(msg, 'A')}"></span>
		<span th:text="${#strings.startsWith(msg, 'T')}"></span>
		<hr/>
		是否是以指定字符串结束的
		<span th:text="${#strings.endsWith(msg, 'f')}"></span>
		<span th:text="${#strings.endsWith(msg, 'c')}"></span>
		<hr/>
		日期格式化<span th:text="${#dates.format(userDate, 'dd/MMM/yyyy HH:mm')}"></span>
		年:<span th:text="${#dates.year(userDate)}"></span>
		月:<span th:text="${#dates.month(userDate)}"></span>
		<hr/>
		<div>
			<span th:if="${sex} == '1'">性别男</span>
			<span th:if="${sex} == '2'">性别女</span>
		</div>
		<hr/>
		<div th:switch="${sex}">
			<span th:case="'1'">性别男</span>
			<span th:case="'2'">性别女</span>
		</div>
	</div>
</body>
</html>